<?php$dataType = "json";$response_type = "code";$grant_type = "authorization_code";$client_id = "您的oschina app key";$client_secret = "您的oschina app secret";$redirect_uri = "token_osc.php文件的线上访问路径";$codeurl = "https://www.oschina.net/action/oauth2/authorize";$tokenurl = "https://www.oschina.net/action/openapi/token?";$userurl = "https://www.oschina.net/action/openapi/user";$cateurl = "https://www.oschina.net/action/openapi/blog_catalog_list";?>